package com.smartleanx.module.hrm.dal.dataobject.salary;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author mybatis-plus
 * @since 2025-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hrm_salary_fixed")
public class HrmSalaryFixed extends Model<HrmSalaryFixed> {

    private static final long serialVersionUID = 1L;



    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员工id
     */
    private Integer employeeId;

    /**
     * 定薪/调薪时间
     */
    private String date;

    /**
     * 薪资总和
     */
    private BigDecimal sumSalary;
    private BigDecimal sySumSalary;

    private BigDecimal oldSumSalary;


    /**
     * 备注
     */
    private String remark;

    private Integer reason;

    private Integer state;

    private Integer isEffect;

    private String createTime;

    private Integer tableTemplateId;

    @TableField(exist = false)
    private List<JSONObject> tableList;

    @TableField(exist = false)
    private List<JSONObject> syTableList;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private  Integer type ;

    private BigDecimal oldSySumSalary;


    public static void main(String[] args) {
        BigDecimal divide = new BigDecimal(12).divide(new BigDecimal(11),0, RoundingMode.DOWN);
        System.err.println(divide);
    }

}
